<?php

namespace app\home\controller;

use app\common\controller\Home;

class Comment extends Home
{

    protected $CommentModel = null;

    public function __construct()
    {
        parent::__construct();

        $this->CommentModel = model('Comment.Comment');
    }

    public function comment_list()
    {
        $list = $this->CommentModel->with(['business', 'subject'])->select();

        $this->assign('list', $list);

        return $this->view->fetch();
    }
}
